!function(a){a(window).on("load",function(){a("#loader-site").delay(500).fadeOut("slow")});a(document).ready(function(){function d(b,c){if("fadeIn"===b)a(c[0]).on("click",function(b){b.preventDefault();a(c[1]).fadeIn(300)});else if("fadeOut"===b)a(c[0]).on("click",function(b){b.preventDefault();a(c[1]).fadeOut(300)});else if("fadeToggle"===b)a(c[0]).on("click",function(b){b.preventDefault();a(c[1]).fadeToggle(300)})}a(document.body).on("appear",".feed",function(b,c){a(this).addClass("appeared")});a(".feed").appear({force_process:!0});
d("fadeIn",["#header-mobile-open","#header-mobile"]);d("fadeOut",[".nav-mobile-logo > i","#header-mobile"]);d("fadeToggle",[".nav-group-popup",".account--menu-popup"]);d("fadeToggle", ["#ls-nav", ".account--message-popup"]);d("fadeToggle", ["#notice-nav", ".account--notice-popup"]);var b=function(b){a(b[0]).on("click",function(c){c.preventDefault();a(b[1]).slideToggle(300);a(b[2]).toggleClass("is-active-sect");a(this).toggleClass("logosRowI-active")})};b([".su-i",".su-div",".su"]);b([".po-i",".po-div",".po"]);b([".p-i",".p-div",".p"]);b([".rf-i",".rf-div",".rf"]);b([".web-p-i",".web-p-div",".web-p"]);a("#sub_close").on("click",
function(b){b.preventDefault();a(".aside").hasClass("is-act-aside")?(a("#sub_close").attr("class","fas fa-toggle-off"),a("#sub_close").css("color",""),a(".aside").removeClass("is-act-aside")):(a("#sub_close").attr("class","fas fa-toggle-on"),a("#sub_close").css("color","#4080ff"),a(".aside").addClass("is-act-aside"));return!1});a(".arrow-up-site").on("click",function(b){b.preventDefault();a("body, html").animate({scrollTop:0},300);return!1});a("#navigator > ul > li").each(function(){var b=window.location.href,
c=window.location.origin,d=a(this).find("a").attr("href");c+d===b&&a(this).addClass("active-menuItem")});b=function(b){a(b[0]).on("click",function(c){c.preventDefault();a(".tabsi li").removeClass("activs");a(".tabsi-cnt div").removeClass("activs");a(".if-news li").removeClass("activs");a(".if-news-cnt div").removeClass("activs");a(b[0]).addClass("activs");a(b[1]).addClass("activs")})};b([".inform",".ind"]);b([".likes",".lid"]);b([".themes_s",".thd"]);b([".comments",".ced"]);b([".np",".npd"]);b([".pp",
".ppd"]);b([".la",".lad"]);b([".lu",".lud"])});switch(window.location.pathname){case "/account/notice":a(".blockLint-noti").addClass("is-selected");break;case "/account/messages":a(".blockLint-mes").addClass("is-selected");break;case "/account/sympathy":a(".blockLint-sym").addClass("is-selected");break;case "/account/preferences":a(".blockLint-pref").addClass("is-selected");break;case "/account/security":a(".blockLint-sec").addClass("is-selected");break;case "/account/ref":a(".blockLint-ref").addClass("is-selected");
break;default:return!1}if("serviceWorker"in navigator)try{window.addEventListener("load",function(){navigator.serviceWorker.register("/static/js/service/sw.js").then(function(a){console.log("ServiceWorker registratin successful with scope: ",a.scope);navigator.serviceWorker.ready.then(function(a){return a.sync.register("syncdata")})["catch"](function(a){return console.error(a)})})["catch"](function(a){return console.error(a)})},!1)}catch(d){throw Error(d);}}(jQuery,window,document);